<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改虾皮订单收入信息')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-OrderIncome-edit" th:object="${msOrderIncome}">
            <input name="orderIncomeId" th:field="*{orderIncomeId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单号：</label>
                <div class="col-sm-8">
                    <input name="orderSn" th:field="*{orderSn}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">代管金额：</label>
                <div class="col-sm-8">
                    <input name="escrowAmount" th:field="*{escrowAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家支付金额：</label>
                <div class="col-sm-8">
                    <input name="buyerTotalAmount" th:field="*{buyerTotalAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">原价：</label>
                <div class="col-sm-8">
                    <input name="originalPrice" th:field="*{originalPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家折扣金额：</label>
                <div class="col-sm-8">
                    <input name="sellerDiscount" th:field="*{sellerDiscount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平台折扣金额：</label>
                <div class="col-sm-8">
                    <input name="shopeeDiscount" th:field="*{shopeeDiscount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家优惠券金额：</label>
                <div class="col-sm-8">
                    <input name="voucherFromSeller" th:field="*{voucherFromSeller}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平台优惠券金额：</label>
                <div class="col-sm-8">
                    <input name="voucherFromShopee" th:field="*{voucherFromShopee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">虾皮币金额：</label>
                <div class="col-sm-8">
                    <input name="coins" th:field="*{coins}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家支付运费：</label>
                <div class="col-sm-8">
                    <input name="buyerPaidShippingFee" th:field="*{buyerPaidShippingFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买家交易手续费：</label>
                <div class="col-sm-8">
                    <input name="buyerTransactionFee" th:field="*{buyerTransactionFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">跨境税收：</label>
                <div class="col-sm-8">
                    <input name="crossBorderTax" th:field="*{crossBorderTax}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">促销抵消金额：</label>
                <div class="col-sm-8">
                    <input name="paymentPromotion" th:field="*{paymentPromotion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平台佣金：</label>
                <div class="col-sm-8">
                    <input name="commissionFee" th:field="*{commissionFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">服务费：</label>
                <div class="col-sm-8">
                    <input name="serviceFee" th:field="*{serviceFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家交易手续费：</label>
                <div class="col-sm-8">
                    <input name="sellerTransactionFee" th:field="*{sellerTransactionFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家返现虾皮币：</label>
                <div class="col-sm-8">
                    <input name="sellerCoinCashBack" th:field="*{sellerCoinCashBack}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">代收税收：</label>
                <div class="col-sm-8">
                    <input name="escrowTax" th:field="*{escrowTax}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最终运费：</label>
                <div class="col-sm-8">
                    <input name="finalShippingFee" th:field="*{finalShippingFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">实际运费：</label>
                <div class="col-sm-8">
                    <input name="actualShippingFee" th:field="*{actualShippingFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单重量：</label>
                <div class="col-sm-8">
                    <input name="orderChargeableWeight" th:field="*{orderChargeableWeight}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">平台运费补贴：</label>
                <div class="col-sm-8">
                    <input name="shopeeShippingRebate" th:field="*{shopeeShippingRebate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">第三方运费折扣：</label>
                <div class="col-sm-8">
                    <input name="shippingFeeDiscountFrom3pl" th:field="*{shippingFeeDiscountFrom3pl}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家运费补贴：</label>
                <div class="col-sm-8">
                    <input name="sellerShippingDiscount" th:field="*{sellerShippingDiscount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">预估运费：</label>
                <div class="col-sm-8">
                    <input name="estimatedShippingFee" th:field="*{estimatedShippingFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家优惠券编码：</label>
                <div class="col-sm-8">
                    <input name="sellerVoucherCode" th:field="*{sellerVoucherCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">Shopee争议解决中心的可调整退款金额：</label>
                <div class="col-sm-8">
                    <input name="drcAdjustableRefund" th:field="*{drcAdjustableRefund}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">买方为特定订单中的项目支付的最终金额：</label>
                <div class="col-sm-8">
                    <input name="costOfGoodsSold" th:field="*{costOfGoodsSold}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">特定订单中每个项目的Shopee折扣的总和：</label>
                <div class="col-sm-8">
                    <input name="originalCostOfGoodsSold" th:field="*{originalCostOfGoodsSold}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">部分退还时退还给卖方的金额：</label>
                <div class="col-sm-8">
                    <input name="sellerReturnRefund" th:field="*{sellerReturnRefund}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">卖家预计收到金额：</label>
                <div class="col-sm-8">
                    <input name="escrowAmountPrice" th:field="*{escrowAmountPrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">信用卡活动金额：</label>
                <div class="col-sm-8">
                    <input name="creditCardPromotion" th:field="*{creditCardPromotion}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">信用卡交易手续费：</label>
                <div class="col-sm-8">
                    <input name="creditCardTransactionFee" th:field="*{creditCardTransactionFee}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单采购价：</label>
                <div class="col-sm-8">
                    <input name="purchasePrice" th:field="*{purchasePrice}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">打包费用：</label>
                <div class="col-sm-8">
                    <input name="warehousePackageAmount" th:field="*{warehousePackageAmount}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">订单利润：</label>
                <div class="col-sm-8">
                    <input name="orderProfit" th:field="*{orderProfit}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">创建时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="createDate" th:value="${#dates.format(msOrderIncome.createDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">最后修改时间：</label>
                <div class="col-sm-8">
                    <div class="input-group date">
                        <input name="lastUpdateDate" th:value="${#dates.format(msOrderIncome.lastUpdateDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                    </div>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label is-required">最后修改人：</label>
                <div class="col-sm-8">
                    <input name="lastUpdateBy" th:field="*{lastUpdateBy}" class="form-control" type="text" required>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "msOrder/OrderIncome";
        $("#form-OrderIncome-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-OrderIncome-edit').serialize());
            }
        }

        $("input[name='createDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        $("input[name='lastUpdateDate']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });
    </script>
</body>
</html>